//
//  HomeViewCell.swift
//  SwiftPhophotoBrowser
//
//  Created by xmg on 16/8/20.
//  Copyright © 2016年 wlis. All rights reserved.
//

import UIKit
import SDWebImage
class HomeViewCell: UICollectionViewCell {
    /** 图片 */
    @IBOutlet weak var imageView: UIImageView!
    
    var shop : CommodityDisplay?{
        didSet {
            /** 效验是否幼稚 */
            guard let shop = shop else{return}
            
            /** 获取url */
            let url = NSURL(string: shop.q_pic_url)
            /** 设置图片 */
            imageView.sd_setImageWithURL(url, placeholderImage: UIImage(named: "empty_picture"))
           
        }
    }
}
